<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
	Cookie aa = new Cookie("ldl","ldl");
    response.addCookie(aa);
    
    Cookie a1 = new Cookie("a1","a1");
    a1.getName();
    a1.getValue();
    a1.setValue("a1a1");
    a1.setMaxAge(600);
    a1.setPath("/");
    a1.setHttpOnly(true);
    response.addCookie(a1);
    System.out.print(a1.getValue());
%>
</body>
</html>